﻿using System.Web.Mvc;
using Web.Generics;
using System.Reflection;
using System;

namespace BolaoDNA.WebMvc.Areas.GenericArea
{
    public class GenericAreaAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Admin";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Admin_Format", // Route name
                "Admin/{controller}/{action}/{id}/{format}", // URL with parameters
                new { action = "Index", id = "", format = "html" }, // Parameter defaults
                new[] { "BolaoDNA.WebMvc.Areas.Admin.Controllers" }
            );
        }
    }
}
